import App from './App'
import Vue from 'vue'
// import uView from './uview-ui'
import uView from './uview-ui';
import store from './store/index.js'
import check from './utils/verify.js'
import play from 'utils/plays.js'


import {
	request
} from "@/common/config.js"

Vue.prototype.check = check
Vue.prototype.$store = store
Vue.prototype.$request = request
Vue.prototype.$play = play
// Vue.prototype.Audio =(){
// 	var music = null;
// 	music = uni.createInnerAudioContext();
// 	music.onPlay(()=> {
// 		console.log('播放了');
// 	})
// 	music.src = store.playMusicListData.playSongUrl
// }

Vue.use(uView)
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App,
	store
})
app.$mount()

import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}